﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NETCORE.OdataRestful.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class PropsController : ControllerBase
    {
        [HttpGet]
        [Route("GetProp")]
        public ActionResult<string> GetProp()
        { 
            return "value";
        }


        [HttpPost]
        [Route("postProp")]
        public ActionResult<string> postProp(string dto)
        {
            return Ok("11111" + dto);
        }


        [HttpGet]
        public IActionResult Get(string key)
        {
            return Ok(111 + key);
        }

    }
}
